import time

import pytest
from selenium import webdriver

from .tabs import Tabs
from .upload import Upload
from ...common.ui.Selector import Selector
from ...exception.TestException import TestException


def test_tbas_antd3x():
    browser = webdriver.Chrome()
    browser.maximize_window()
    # browser.get("https://3x.ant.design/components/upload-cn/")
    browser.get("https://yu2m8.csb.app/")
    # 基本
    # upload = Upload(browser,
    #               '//section[@id="components-upload-demo-basic"]/section//div[contains(@class,"ant-upload ")]',
    #               Selector.XPATH)
    time.sleep(30)
    upload = Upload(browser,'div.ant-upload-select', Selector.CSS_SELECTOR)
    upload.setValue('D:\\project\\test_project\\v9\debug.log')

    time.sleep(10)

